
package com.flow.asyncflow.test.AsyncFlow.Enum.plusasyncflowtest;

import com.flow.asyncflow.core.node.IOperatorEnumInterface;

/**
 * 测试异步流Plus枚举
 *
 * @author 系统自动生成
 * @since 2022-05-27 16:06:44
 */
public enum PlusAsyncFlowTestOperatorEnum implements IOperatorEnumInterface {

    Defaults(1, "默认"),
    PlusAsyncFlowTest(2, "升级版"),
    ;

    private int code;
    private String msg;

    private PlusAsyncFlowTestOperatorEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    //public static String msg(int code) {
    //    PlusAsyncFlowTestOperatorEnum[] var1 = values();
    //    int var2 = var1.length;
    //
    //    for (PlusAsyncFlowTestOperatorEnum m : var1) {
    //        if (m.getCode() == code) {
    //        return m.getMsg();
    //        }
    //    }
    //    return Defaults.getMsg();
    //}
    //
    //public static int code(String msg) {
    //    PlusAsyncFlowTestOperatorEnum[] var1 = values();
    //    int var2 = var1.length;
    //
    //    for (PlusAsyncFlowTestOperatorEnum m : var1) {
    //        if (m.getMsg().equals(msg)) {
    //        return m.getCode();
    //        }
    //    }
    //
    //    return Defaults.getCode();
    //}


}
